﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class BCompany
    {
        private readonly DCompany _dCompany = new DCompany();
        public bool Exists(string companyName)
        {
            return _dCompany.Exists(companyName);
        }
         
        public bool Add(Model.CompanyInfo model)
        {
            return _dCompany.Add(model);
        }
         
        public bool Update(Model.CompanyInfo model)
        {
            return _dCompany.Update(model);
        }
         
        public bool Delete(int id)
        {
            return _dCompany.Delete(id);
        }
         
        public Model.CompanyInfo GetModel(int id)
        {
            return _dCompany.GetModel(id);
        }
         
        public DataSet GetList(string strWhere)
        {
            return _dCompany.GetList(strWhere);
        }
                
        public List<string> GetCompanyList()
        {
            return _dCompany.GetCompanyList();
        }
    }
}
